package selenium.lessons.pages;

import org.openqa.selenium.WebDriver;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 19.03.13
 * Time: 21:47
 * To change this template use File | Settings | File Templates.
 */
public class Page {
    protected WebDriver webDriver;

    /*
     * Constructor injecting the WebDriver interface
     *
     * @param webDriver
     */
    public Page(WebDriver webDriver) {
        this.webDriver = webDriver;
    }

    public WebDriver getWebDriver() {
        return webDriver;
    }

    public String getTitle() {
        return webDriver.getTitle();
    }
}
